package com.cskaoyan.shopping.converter;

import com.cskaoyan.shopping.dal.entitys.Panel;
import com.cskaoyan.shopping.dal.entitys.PanelContent;
import com.cskaoyan.shopping.dal.entitys.PanelContentItem;
import com.cskaoyan.shopping.dto.PanelContentItemDto;
import com.cskaoyan.shopping.dto.PanelDto;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 类说明
 *
 * @author zhangfuqiang
 * @date 2022/5/19
 */
@Mapper(componentModel = "spring")
public interface ShoppingHomePageConverter {

    PanelDto panelDo2PanelDto(Panel panel);

    List<PanelDto> panelDos2PanelDtos(List<Panel> panels);

    PanelContentItemDto panelContent2PanelContentItem(PanelContent panelContent);

    List<PanelContentItemDto> panelContents2PanelContentItems(List<PanelContent> panelContents);

}
